import { post, put, Delete } from "@/utils/http";

// 文件
export const FileUpload = (params) => post('/api/SY_File/Upload', params);

// 单位信息
export const SystemQueryConfig = (params) => post('/api/SY_System/QueryPlant', params);
export const BATeacherQueryCondition = (params) => post('/api/BA_Teacher/QueryCondition', params);
export const SystemChangePwd = (params) => post('/api/SY_System/ChangePwd', params);
export const Login = (params) => post('/api/SY_System/Login', params);
export const GetRegionList = (params) => post('/api/SY_Region/GetRegionList', params);
export const QueryCityByRegion = (params) => post('/api/SY_Region/QueryCityByRegion', params);
export const UpdatePower = (params) => put('/api/SY_Region/UpdatePower', params);
export const QueryByCity = (params) => post('/api/SY_Weather/QueryByCity', params);
//查询本日天气
export const QueryToday = (params) => post('/api/SY_Weather/QueryToday', params);
//查询预测天气
export const QueryForecast = (params) => post('/api/SY_Weather/QueryForecast', params);
// 非市场
export const NonMarketOutputQueryDayData = (params) => post('/api/SN_NonMarketOutput/QueryDayData', params);
// 各时段负荷预测
export const CalcLoadQueryDayData = (params) => post('/api/SN_CalcLoad/QueryDayData', params);
// 各时段发力总出力预测
export const TotalOutputQueryDayData = (params) => post('/api/SN_TotalOutput/QueryDayData', params);
// 外来点交易计划
export const OutsidePlanQueryDayData = (params) => post('/api/SN_OutsidePlan/QueryDayData', params);
// 中长期价格测算
export const LongRangeQueryRangeData = (params) => post('/api/SN_LongRange/QueryRangeData', params);
// 新能源当日出力管理
export const NewEnergyOutputQuery = (params) => post('/api/SN_NewEnergyOutput/Query', params);


// 用户管理
export const UserQueryAll = (params) => post('/api/SY_User/QueryAll', params);
export const UserDelete = (params) => Delete('/api/SY_User/Delete', params);
export const UserInsert = (params) => post('/api/SY_User/Insert', params);
export const UserUpdate = (params) => put('/api/SY_User/Update', params);
export const UserResetPwd = (params) => post('/api/SY_User/ResetPwd', params);
export const UserQueryOne = (params) => post('/api/SY_User/QueryOne', params);

// 设备管理
export const EquipmentQueryAll = (params) => post('/api/BA_Equipment/QueryAll', params);
export const EquipmentInsert = (params) => post('/api/BA_Equipment/Insert', params);
export const EquipmentUpdate = (params) => put('/api/BA_Equipment/Update', params);
export const EquipmentDelete = (params) => Delete('/api/BA_Equipment/Delete', params);

// 移动端注册
export const MobileRegInsert = (params) => post('/api/SY_MobileReg/Insert', params);
export const MobileRegQueryAll = (params) => post('/api/SY_MobileReg/QueryAll', params);
export const MobileRegUpdate = (params) => put('/api/SY_MobileReg/Update', params);
export const MobileRegDelete = (params) => Delete('/api/SY_MobileReg/Delete', params);
export const MobileRegSetEnable = (params) => post('/api/SY_MobileReg/SetEnable', params);
export const MobileSetDisable = (params) => post('/api/SY_MobileReg/SetDisable', params);


// 引用字典
export const ReferDict = (params) => post('/api/BA_Dict/ReferDict', params);

// 类别
export const CategoryReferMain = (params) => post('/api/BA_Category/ReferMain', params);
export const CategoryReferSub = (params) => post('/api/BA_Category/ReferSub', params);
export const CategoryReferDetail = (params) => post('/api/BA_Category/ReferDetail', params);
export const CategoryAddMain = (params) => post('/api/BA_Category/AddMain', params);
export const CategoryAddSub = (params) => post('/api/BA_Category/AddSub', params);
export const CategoryAddDetail = (params) => post('/api/BA_Category/AddDetail', params);
export const CategoryUpdateMain = (params) => put('/api/BA_Category/UpdateMain', params);
export const CategoryUpdateSub = (params) => put('/api/BA_Category/UpdateSub', params);
export const CategoryUpdateDetail = (params) => put('/api/BA_Category/UpdateDetail', params);
export const CategoryDeleteMain = (params) => Delete('/api/BA_Category/DeleteMain', params);
export const CategoryDeleteSub = (params) => Delete('/api/BA_Category/DeleteSub', params);
export const CategoryDeleteDetail = (params) => Delete('/api/BA_Category/DeleteDetail', params);
export const CategoryQueryTree = (params) => post('/api/BA_Category/QueryAll', params);
export const CategoryAdd = (params) => post('/api/BA_Category/Add', params);
export const CategoryRefer = (params) => post('/api/BA_Category/Refer', params);
export const CategoryUpdate = (params) => put('/api/BA_Category/Update', params);
export const CategoryDelete = (params) => Delete('/api/BA_Category/Delete', params);

// 管理-首页
export const StatRegionCompany = (params) => post('/api/SY_HomeAdmin/StatRegionCompany', params);
export const StatProduct = (params) => post('/api/SY_HomeAdmin/StatProduct', params);
export const GetMainCount = (params) => post('/api/SY_HomeAdmin/GetMainCount', params);
export const GetSubCount = (params) => post('/api/SY_HomeAdmin/GetSubCount', params);
export const GetDetailCount = (params) => post('/api/SY_HomeAdmin/GetDetailCount', params);
export const GetCompanyCount = (params) => post('/api/SY_HomeAdmin/GetCompanyCount', params);
export const GetProductCount = (params) => post('/api/SY_HomeAdmin/GetProductCount', params);
export const GetCate1Count = (params) => post('/api/SY_HomeAdmin/GetCate1Count', params);
export const GetCate2Count = (params) => post('/api/SY_HomeAdmin/GetCate2Count', params);
export const GetCate3Count = (params) => post('/api/SY_HomeAdmin/GetCate3Count', params);
export const GetCate4Count = (params) => post('/api/SY_HomeAdmin/GetCate4Count', params);
export const GetCategoryTree = (params) => post('/api/SY_HomeAdmin/GetCategoryTree', params);
export const QueryTree = (params) => post('/api/BA_Category/QueryTree', params);

// 管理-申报产品
export const ProductInsert = (params) => post('/api/BA_ProductAdmin/Insert', params);
export const ProductQueryOne = (params) => post('/api/BA_ProductAdmin/QueryOne', params);
export const ProductUpdate = (params) => put('/api/BA_ProductAdmin/Update', params);
export const ProductDelete = (params) => Delete('/api/BA_ProductAdmin/Delete', params);
export const ProductQuery = (params) => post('/api/BA_ProductAdmin/Query', params);
export const ProductQueryCondition = (params) => post('/api/BA_ProductAdmin/QueryCondition', params);

// 管理-申报企业
export const CompanyAdminQuery = (params) => post('/api/BA_CompanyAdmin/Query', params);
export const CompanyAdminQueryOne = (params) => post('/api/BA_CompanyAdmin/QueryOne', params);
export const CompanyAdminInsert = (params) => post('/api/BA_CompanyAdmin/Insert', params);
export const CompanyAdminUpdate = (params) => put('/api/BA_CompanyAdmin/Update', params);
export const CompanyAdminDelete = (params) => Delete('/api/BA_CompanyAdmin/Delete', params);
export const CompanyAdminSetEnable = (params) => post('/api/BA_CompanyAdmin/SetEnable', params);
export const CompanyAdminSetDisable = (params) => post('/api/BA_CompanyAdmin/SetDisable', params);

// 企业-申报产品
export const ProductCompanyInsert = (params) => post('/api/BA_ProductCompany/Insert', params);
export const ProductCompanyQueryOne = (params) => post('/api/BA_ProductCompany/QueryOne', params);
export const ProductCompanyUpdate = (params) => put('/api/BA_ProductCompany/Update', params);
export const ProductCompanyDelete = (params) => Delete('/api/BA_ProductCompany/Delete', params);
export const ProductCompanyQuery = (params) => post('/api/BA_ProductCompany/Query', params);
